<template>
  <div class="main">
      <section id="TopNav">
        <div id="top">
            <span id="return">&lt;</span>
            <div id="Toptext">会员中心</div>
            <span id="pay-problem">会员说明</span>
        </div>
      </section>
      <div class="photos">
          <div class="photo">
              <div class="photo-head"><img src="../../../public/1.png" alt=""></div>
              <h2 class="photo-user">小河里12132324</h2>
              <i class="iconfont icon-huangguan"></i>
          </div>
      </div>
      <!-- 会员界面 -->
      <div class="contents">
          <div class="content">
              <div class="Growth-value">
                  <h2>普通会员</h2>
                  <p class="up">当前成长值0，还需1成长值升至V1 ></p>
                  <div class="rank">V0<div class="progress"><div class="progress-bar"></div></div>V1</div>
              </div>
              <div class="H-beans">
                  <div>
                      <p class="beans">可用H豆(个)</p>
                      <p class="beans-value">0</p>
                  </div>
                  <div><p class="detailed">查看明细</p></div>
              </div>
          </div>
      </div>

      <!-- H豆兑换好礼 -->
      <div class="gift">
          <p class="exchange"><span>H豆兑换好礼</span><span>查看全部</span></p>
          <div class="roll">
              <Fu :arr="arr"/>
          </div>
      </div>

      <!-- 我的特权 -->
      <div class="privilege">
          <h1>我的特权</h1>
          <div class="pictures">
              <div class="picture">
                  <div class="picture-img"><img src="../../../public/00005.png" alt=""></div>
                  <p class="picture-text">会员专享价</p>
              </div>
              <div class="picture">
                  <div class="picture-img"><img src="../../../public/00006.png" alt=""></div>
                  <p class="picture-text">H豆特权</p>
              </div>
              <div class="picture">
                  <div class="picture-img"><img src="../../../public/00007.png" alt=""></div>
                  <p class="picture-text">等级特权</p>
              </div>
              <div class="picture">
                  <div class="picture-img"><img src="../../../public/00008.png" alt=""></div>
                  <p class="picture-text">查看更多</p>
              </div>
          </div>
      </div>
  </div>
</template>

<script>
import Fu from "@/components/liyang/slider/fu.vue"
import {getlink} from "@/api/getapi.js"
export default {
    data(){
        return{
            arr:[]
        }
    },
    components:{
        Fu
    },
    mounted(){
        getlink("/data/list/h-bean").then((ok)=>{
            console.log(ok.data);
            this.arr=ok.data;
        })
    }
}
</script>

<style scoped>
    @import url("http://at.alicdn.com/t/font_2802478_7jki56o3baj.css");
/* main */
    .main{
        width: 100%;
        background-image: url("../../../public/00002.png");
        display: inline-block;
        background-size: 100%;
        height: 14rem;
        background-repeat: no-repeat;
        background-color: #f7f7f7;
    }
    #TopNav {
        width: 100%;
        height: 1rem;
        position: fixed;
        top: 0;
        background: rgba(255,255,255,0);
        color: #ffffff;
    }
    #top {
        position: relative;
    }
    #return {
        font-size: 0.3rem;
        position: absolute;
        top: 0.3rem;
        left: 4%;
    }
    #Toptext {
        text-align: center;
        line-height: 1rem;
        font-size: 0.3rem;
    }
    #pay-problem {
        position: absolute;
        top: 0.35rem;
        left: 6rem;
    }


    /* photo */
    .photos{
        width: 100%;
        margin-top: 1rem;
        display: inline-block;
    }
    .photo{
        width: 96%;
        margin: 0.25rem;
        display: flex;
    }
    .photo-head{
        width: 0.8rem;
        height: 0.8rem;
        margin-right: 0.2rem;
    }
    .photo-head img{
        width: 0.8rem;
        height: 0.8rem;
        border-radius: 50%;
    }
    .photo-user{
        font-size: 0.35rem;
        margin-right: 0.2rem;
        line-height: 0.7rem;
        color: #ffffff;
    }
    .icon-huangguan{
        font-size: 0.3rem;
        color: yellow;
        line-height: 0.7rem;
    }


    /* contents */
    .contents{
        width: 89%;
        display: inline-block;
    }
    .content{
        width: 100%;
        margin: 0 0.45rem;
        background: #ffffff;
        border-radius: 0.2rem;
    }
    .Growth-value{
        width: 100%;
        height: 2.07rem;
        display: inline-block;
        background-image: url("../../../public/00001.png");
        background-size: 100%;
        background-repeat: no-repeat;
    }
    .Growth-value h2{
        font-size: 0.3rem;
        font-weight: 600;
        margin: 0.3rem;
    }
    .up{
        margin-left: 0.3rem;
    }
    .rank{
        width: 100%;
        display: inline-block;
        display: flex;
        margin-top: 0.3rem;
        margin-left: 0.3rem;
    }
    .progress{
        width: 4rem;
        height: 0.1rem;
        background-color: #e9eaea;
        margin: 0.1rem 0.2rem;

    }
    .progress-bar{
        width: 50%;
       height: 00.1rem;
        background-color: #9e9fa0;
    }


    /* beans */
    .H-beans{
        display: flex;
        justify-content: space-between;
    }
    .beans{
        font-size: 0.3rem;
        margin: 0.2rem 0.3rem;
    }
    .beans-value{
        font-size: 0.3rem;
        margin: 0.2rem 0.3rem;
        font-weight: 600;
    }
    .detailed{
        font-size: 0.3rem;
        margin: 0.2rem 0.3rem;
        padding-top: 0.2rem;
    }

    /* gift */
    .gift{
        width: 86%;
        display: inline-block;
        margin: 0.5rem 0.5rem;
        background: #fff;
        border-radius: 10px;
    }
    .exchange{
        display: flex;
        justify-content: space-between;
        padding: 0.3rem;
    }
    .exchange span:nth-of-type(1){
        font-size: 0.3rem;
        vertical-align: middle;
    }
    .exchange span:nth-of-type(2){
        vertical-align: middle;
        color: #999999;
    }
    .roll{
        display: flex;
        overflow-x: auto;
        height:1.4rem;
    }


    /* 我的特权 */
    .privilege{
        width: 86%;
        display: inline-block;
        background-color: #ffffff;
        margin: 0 0.5rem;
        border-radius: 10px;
    }
    .privilege h1{
        padding: 0.3rem;
    }
    .pictures{
        width: 100%;
        display: inline-block;
        display: flex;
        justify-content: space-around;
    }
    .picture{
        width: 1.5rem;
        height: 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        text-align: center;
    }
    .picture-img{
        width: 1rem;
        height: 1rem;
    }
    .picture-img img{
        width: 1rem;
        height: 1rem;
        padding-left: 0.2rem;
    }
</style>